#include "cellar.h"
#include "fileHandler.h"
#include "result.h"

/**
 * @brief evaluate
 *
 * Interface for storing information about prediction (evaluate)
 *
 */
Result evaluate(Cellar &,std::vector<Wine*> &, Result&);

/**
 * @brief findLocalMax
 *
 * Function for weight optimization process
 */
Result findLocalMax(std::vector<double>& weights, Cellar& training,  std::vector<Wine*>& testing, Result best);


/**
 * @brief weightLoop
 * Helper function for findLocalMax
 */
Result weightLoop(std::vector<double>& weights, std::vector<double>::iterator i, Cellar& training,  std::vector<Wine*>& testing, double factor, double best);
